package com.xbongbong.pro.formlabel.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author 魏荣杰
 *
 */
@Setter
@Getter
@ToString
public class FormLabelAddDTO extends BaseDTO {

    private static final long serialVersionUID = -6374397642999086057L;

    /**
     * 标签名称
     */
    @NotEmpty
    @Size(min = 1, max = 20)
    private String name;

    /**
     * 标签颜色
     */
    @NotEmpty
    private String color;

    /**
     * 1saas,2paas
     */
    @NotNull
    private Integer saasMark;

    /**
     * 表单id
     */
    @NotNull
    private Long formId;

    /**
     * 业务类型
     */
    @NotNull
    private Integer businessType;

    /**
     * 是否是经销商，0不是，1是
     */
    @NotNull
    private Integer distributorMark;
}
